字太多發動省略功能的 CSS 三兄弟


Posted by Rich on 2021-09-12

overflow: hidden; // 超出就隱藏
text-overflow: ellipsis; // 字超出就變 ...
white-space: nowrap; // 好像是不換行?

解釋還不保證 100% 對。但這三個真的好用。










Related Posts

跳出迴圈的方法 continue, break 與 return

跳出迴圈的方法 continue, break 與 return

Week3:hw4 判斷迴文

Week3:hw4 判斷迴文

React(6) - 提升state

React(6) - 提升state


Comments